<template>
  <div class="userInfo">
    <hunk-head name="个人结算账户"></hunk-head>
    <div class="userform">
      <div class="form-item">
        <div class="left">银行卡号</div>
        <div class="add-input">
          <span style="color:#999;font-weight:800">{{idList.cardId}}</span>
        </div>
      </div>
      <div class="space"></div>
      <div class="form-item">
        <div class="left">用户姓名</div>
        <div class="add-input">
         <span style="color:#999;font-weight:800">{{idList.cardName}}</span>
        </div>
      </div>
      <div class="space"></div>
      <div class="form-item">
        <div class="left">身份证</div>
        <div class="add-input">
          <span style="color:#999;font-weight:800">{{idList.certId}}</span>
        </div>
      </div>
      <div class="space"></div>
      <div class="form-item">
        <div class="left">用户手机号</div>
        <div class="add-input">
          <span style="color:#999;font-weight:800">{{idList.telNo}}</span>
        </div>
      </div>
      <div class="space"></div>
     
    </div>
    <!--
    <div class="btn">
      <div class="checkbtn" @click="changeInfo">确定</div>
    </div>
    -->
  </div>
</template>

<script>
import Head from '@componentsMine/head'
import { GetthealName} from '@/apis/user'
import {GetUserInfo} from '@/apis/user'
export default {
  components: {
    'hunk-head': Head
  },
  data() {
    return {
       idList:{}
    }
  },
  computed: {
    userInfo() {
      return this.$store.state.baseStore.userInfo
     
    }
  },
  mounted(){
      this.getcardInfo()
     setTimeout(()=>{
          console.log(this.idList)
     },2000)
  },
  methods: {
     getcardInfo(){
         let userid = this.$store.state.baseStore.userInfo.userid
         const data = {
             userid
         }
         console.log(userid)
          GetthealName(data).then(res=>{
        if(res.code == 200){    
             this.idList = res.data
             
        }else{
          uni.showToast({
            title: res.msg,
            icon: 'none'
          })
        }
      })
     },  
     getuserInfo(){
         GetUserInfo({userid:this.userInfo.userid}).then(e=>{
           console.log(e.data.issettleAccount)
           this.$store.state.baseStore.userInfo.issettleAccount = e.data.issettleAccount
         })
    },
  
  }
}
</script>

<style lang="scss" scoped>
.userInfo {
  @include num();
  background: #F9F9F9;
  .userform{
    background: #fff;
    .form-item{
      padding: 12px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left{
        font-size: 15px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 21px;
      }
      
      .add-input{
        img{
          width: 30px;
          height: 30px;
        }
        input{
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #4a4a4a;
          line-height: 20px;
          text-align: right;
        }
        input::placeholder{
          color: #9B9B9B;
        }
      }
    }
    .space{
      margin-left: 10px;
      height: 1px;
      background:#EFEFEF;
    }
  }
  .btn{
    height: 45px;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    .checkbtn{
      width: 355px;
      height: 45px;
      background: linear-gradient(315deg, #FFAA58 0%, #FFBD6C 100%);
      box-shadow: 0px 2px 4px 0px rgba(252, 168, 55, 0.21), 0px 3px 5px 0px rgba(255, 175, 111, 0.14);
      border-radius: 100px;
      font-size: 16px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #FFFFFF;
      line-height: 45px;
      text-shadow: 0px 2px 4px rgba(252, 168, 55, 0.21);
      text-align: center;
    }
  }
  .uni-input-placeholder{
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #9B9B9B;
    line-height: 20px;
  }
}
</style>
